import { Utility } from "@/libs/utility";

export const TestSampleFormConfig = [
  {
    fieldName: "id",
    fieldCNName: "",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "",
  },
  {
    fieldName: "collectType",
    fieldCNName: "采样类型",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
      min: 1, // 这里min一定要写在前面！！！！
      max: 50,
    },
    itemList: Utility.getDictList("collect_type"),
    span: 2,
  },
  {
    fieldName: "type",
    fieldCNName: "样品类型",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "select",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
      min: 1, // 这里min一定要写在前面！！！！
      max: 50,
    },
    itemList: Utility.getDictList("sample_type"),
    span: 2,
  },
  // {
  //   fieldName: "signPrefix",
  //   fieldCNName: "样品标签前缀",
  //   filedValue: "",
  //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
  //   type: "inputText",
  //   rules: {
  //     required: true,
  //   },
  //   span: 2,
  // },
  {
    /** 字段名，如：name */
    fieldName: "testIndex",
    /** 字段对应的中文解释，如：姓名 */
    fieldCNName: "检测指标",
    /** 字段的值，如：张三 */
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
    rules: {
      required: true, // 只有为true的时候才写，为false这个字段不要
    },
  },

  {
    fieldName: "testTubeNum",
    fieldCNName: "分装检测管数",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
    rules: {
      required: true,
    },
    span: 2,
  },
  {
    fieldName: "testTubeBackupNum",
    fieldCNName: "分装备份管数",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
    rules: {
      required: true,
    },
    span: 2,
  },
  {
    fieldName: "collectionCondition",
    fieldCNName: "采集条件",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "transferCondition",
    fieldCNName: "移交条件",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "centrifugationCondition",
    fieldCNName: "离心条件",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "dispensingCondition",
    fieldCNName: "分装条件",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "storageCondition",
    fieldCNName: "存储条件",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputText",
  },
  {
    fieldName: "centrifugationDuration",
    fieldCNName: "离心时长(min)",
    filedValue: "",
    /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    type: "inputNumber",
  },
];
